package com.hncgy.xzf.jdapi.domain.product.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品分类表
 * </p>
 *
 * @author 不会代码的蜡笔
 * @since 2025-10-31
 */
@Data
@Schema(name = "Categories对象", description = "商品分类表")
public class Categories implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "分类ID，主键")
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    @Schema(description ="分类名称")
    private String categoryName;

    @Schema(description ="父分类ID，用于多级分类")
    private Integer parentId;

    @Schema(description ="分类层级：1-一级分类, 2-二级分类")
    private Integer categoryLevel;

    @Schema(description ="分类图标URL")
    private String iconUrl;

    @Schema(description ="排序序号，数字越小越靠前")
    private Integer sortOrder;

    @Schema(description ="状态：active-启用, inactive-停用")
    private String status;

    @Schema(description ="分类图片URL")
    private String imageUrl;

    @Schema(description ="分类描述")
    private String description;

    @Schema(description ="创建人ID")
    private Integer createdBy;

    @Schema(description ="创建时间")
    private LocalDateTime createdAt;

    @Schema(description ="更新时间")
    private LocalDateTime updatedAt;

}
